/*
 * mainloop.cpp
 *
 *  Created on: Jul 2, 2011
 *      Author: denis
 */

#include "pent_low.h"
#include "constants.h"
#include "types.h"
#include "init_pent.h"
#include "recursion.h"

longvector* steps_array= new longvector;


void Row(unsigned long long g_current_position,pentaminos_vector* rotations,std::ofstream * destfile){
	Pentamino_Low* FirstIter;

	for (int xcount = X_MIN; xcount < 4; xcount++) {
			steps_array->push_back(g_current_position);
			FirstIter = new Pentamino_Low(steps_array,rotations,destfile);
			Recursion(FirstIter,1);
			steps_array->pop_back();
			delete(FirstIter->iprevious_steps_array);
			delete(FirstIter);
			g_current_position = (g_current_position >> 1)& LEFT_NULL_COLUMN;
	}
	delete(steps_array);
}
